import request from '@/utils/request'

// 查询入代扣记录列表
export function listWithholdingRecord(query) {
  return request({
    url: '/ecs/withholdingRecord/list',
    method: 'get',
    params: query
  })
}

// 查询入代扣记录详细
export function getWithholdingRecord(id) {
  return request({
    url: '/ecs/withholdingRecord/' + id,
    method: 'get'
  })
}

// 新增入代扣记录
export function addWithholdingRecord(data) {
  return request({
    url: '/ecs/withholdingRecord',
    method: 'post',
    data: data
  })
}

// 修改入代扣记录
export function updateWithholdingRecord(data) {
  return request({
    url: '/ecs/withholdingRecord',
    method: 'put',
    data: data
  })
}

// 删除入代扣记录
export function delWithholdingRecord(id) {
  return request({
    url: '/ecs/withholdingRecord/' + id,
    method: 'delete'
  })
}
